package com.junlong0716.enjoylearning.dialog

import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.junlong0716.enjoylearning.R
import kotlinx.android.synthetic.main.dialog_delete.*

/**
 *@author: 巴黎没有摩天轮Li
 *@description:
 *@date: Created in 下午9:52 2018/6/23
 *@modified by:
 */
class DeleteDialog(context: Context,deleteCallback: DeleteCallback) : Dialog(context, R.style.main_dialog) {

    private val mDeleteCallback = deleteCallback


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_delete)

        ll_delete.setOnClickListener {
            mDeleteCallback.onDeleteCallback(this)
        }

    }



    interface DeleteCallback{
        fun onDeleteCallback(dialog:DeleteDialog)
    }
}